package com.mes.service.cb;

import java.util.List;

import javax.annotation.Resource;

import com.mes.entity.cb.Materiel;
import com.mes.entity.cb.WarehouRed;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.cb.ChartMapper;
import com.mes.entity.cb.Pages;
import com.mes.entity.tdd.ProcurementRuku;

/**
 * @ClassName:ChartServiceImpl
 * @Description:采购图表
 * @Author cb
 * @Date 2018年3月13日下午3:49:19
 * @version 1.0
 */
@Service
@Transactional
public class ChartServiceImpl implements ChartService {

	@Resource
	private ChartMapper chartMapper;
	
	@Override
	public List<WarehouRed> chart_list(Pages pages) {
		
		return chartMapper.chart_list(pages);
	}

	@Override
	public int order_total(Pages pages) {
		
		return chartMapper.order_total(pages);
	}

	@Override
	public List<ProcurementRuku> purchase_list(Pages pages) {
		return chartMapper.purchase_list(pages);
	}

	@Override
	public int getTotal(Pages pages) {
		return chartMapper.getTotal(pages);
	}

	@Override
	public List<Materiel> purchase_detal_list(Pages pages) {
		return chartMapper.purchase_detal_list(pages);
	}

}
